package cn.gbase.jiangsu.data.transfer.bean;

import org.nutz.dao.entity.annotation.*;

import cn.gbase.jiangsu.data.transfer.validation.annotation.Validations;

/**
* 
*/
@Table("forum_topic")
public class ForumTopic extends BaseDto {

	@Id
	@Column("topicId")
	private Integer topicId;

	@Column("forumId")
	private Integer forumId;

	@Column("topicTitle")
	@Validations(required = true, strLen = { 1, 50 }, errorMsg = "标题应为1-50个字符。")
	private String topicTitle;

	@Column("topicContent")
	@Validations(required = true, strLen = { 1, 20000 }, errorMsg = "内容应为1-20000个字符。")
	private String topicContent;

	@Column("fromType")
	private String fromType;

	@Column("toType")
	private String toType;

	@Column("fromId")
	private Integer fromId;

	@Column("toId")
	private Integer toId;

	@Column("addTime")
	private java.util.Date addTime;

	@Column("lastPostTime")
	private java.util.Date lastPostTime;

	@Column("click")
	private Integer click;

	@Column("replyNumber")
	private Integer replyNumber;

	@Column("isTop")
	private String isTop;

	/**
	 * 删除Flag.
	 */
	private int deleteFlag;

	/**
	 * 发帖人名称.
	 */
	private String fromName;

	/**
	 * 收贴人名称.
	 */
	private String toName;

	public Integer getTopicId() {
		return topicId;
	}

	public void setTopicId(Integer topicId) {
		this.topicId = topicId;
	}

	public Integer getForumId() {
		return forumId;
	}

	public void setForumId(Integer forumId) {
		this.forumId = forumId;
	}

	public String getTopicTitle() {
		return topicTitle;
	}

	public void setTopicTitle(String topicTitle) {
		this.topicTitle = topicTitle;
	}

	public String getTopicContent() {
		return topicContent;
	}

	public void setTopicContent(String topicContent) {
		this.topicContent = topicContent;
	}

	public String getFromType() {
		return fromType;
	}

	public void setFromType(String fromType) {
		this.fromType = fromType;
	}

	public String getToType() {
		return toType;
	}

	public void setToType(String toType) {
		this.toType = toType;
	}

	public Integer getFromId() {
		return fromId;
	}

	public void setFromId(Integer fromId) {
		this.fromId = fromId;
	}

	public Integer getToId() {
		return toId;
	}

	public void setToId(Integer toId) {
		this.toId = toId;
	}

	public java.util.Date getAddTime() {
		return addTime;
	}

	public void setAddTime(java.util.Date addTime) {
		this.addTime = addTime;
	}

	public java.util.Date getLastPostTime() {
		return lastPostTime;
	}

	public void setLastPostTime(java.util.Date lastPostTime) {
		this.lastPostTime = lastPostTime;
	}

	public Integer getClick() {
		return click;
	}

	public void setClick(Integer click) {
		this.click = click;
	}

	public Integer getReplyNumber() {
		return replyNumber;
	}

	public void setReplyNumber(Integer replyNumber) {
		this.replyNumber = replyNumber;
	}

	public String getIsTop() {
		return isTop;
	}

	public void setIsTop(String isTop) {
		this.isTop = isTop;
	}

	public String getFromName() {
		return fromName;
	}

	public void setFromName(String fromName) {
		this.fromName = fromName;
	}

	public String getToName() {
		return toName;
	}

	public void setToName(String toName) {
		this.toName = toName;
	}

	public int getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(int deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

}